From bd30ca18847e96b3b1d51f91b905eb6540e5969b Mon Sep 17 00:00:00 2001 From: Joshua N Pritikin Date: Fri, 21 Sep 2001 00:48:04 +0000 Subject: [PATCH] Fix ref count on new tag to be 1. Update doc. (#60836) * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix ref count on new tag to be 1. Update doc. (#60836) --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtktextbuffer.c | 6 ++++-- 8 files changed, 39 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 55dd7b595d..917f0c211e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 20 17:45:54 2001 Joshua N Pritikin + + * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix + ref count on new tag to be 1. Update doc. (#60836) + Thu Sep 20 16:20:47 2001 Owen Taylor * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 55dd7b595d..917f0c211e 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +Thu Sep 20 17:45:54 2001 Joshua N Pritikin + + * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix + ref count on new tag to be 1. Update doc. (#60836) + Thu Sep 20 16:20:47 2001 Owen Taylor * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 55dd7b595d..917f0c211e 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Thu Sep 20 17:45:54 2001 Joshua N Pritikin + + * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix + ref count on new tag to be 1. Update doc. (#60836) + Thu Sep 20 16:20:47 2001 Owen Taylor * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 55dd7b595d..917f0c211e 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +Thu Sep 20 17:45:54 2001 Joshua N Pritikin + + * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix + ref count on new tag to be 1. Update doc. (#60836) + Thu Sep 20 16:20:47 2001 Owen Taylor * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 55dd7b595d..917f0c211e 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Thu Sep 20 17:45:54 2001 Joshua N Pritikin + + * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix + ref count on new tag to be 1. Update doc. (#60836) + Thu Sep 20 16:20:47 2001 Owen Taylor * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 55dd7b595d..917f0c211e 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Thu Sep 20 17:45:54 2001 Joshua N Pritikin + + * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix + ref count on new tag to be 1. Update doc. (#60836) + Thu Sep 20 16:20:47 2001 Owen Taylor * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 55dd7b595d..917f0c211e 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Thu Sep 20 17:45:54 2001 Joshua N Pritikin + + * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix + ref count on new tag to be 1. Update doc. (#60836) + Thu Sep 20 16:20:47 2001 Owen Taylor * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c index 4195610e44..48fe365726 100644 --- a/gtk/gtktextbuffer.c +++ b/gtk/gtktextbuffer.c @@ -1912,8 +1912,8 @@ gtk_text_buffer_place_cursor (GtkTextBuffer *buffer, * * Creates a tag and adds it to the tag table for @buffer. * Equivalent to calling gtk_text_tag_new () and then adding the - * tag to the buffer's tag table. The returned tag has its refcount - * incremented, as if you'd called gtk_text_tag_new (). + * tag to the buffer's tag table. The returned tag is owned by + * the buffer's tag table, so the ref count will be equal to one. * * If @tag_name is %NULL, the tag is anonymous. * @@ -1947,6 +1947,8 @@ gtk_text_buffer_create_tag (GtkTextBuffer *buffer, va_end (list); } + g_object_unref (tag); + return tag; } -- 2.30.2